            <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h3 class="modal-title">PAGO DE <?php echo strtoupper($usuario['User']['nombre_completo']);?></h3>
            </div>
            <div class="modal-body">
                <?php if(!empty($mensajem)):?>
                <div class="row">
                    <div class="col-md-12">
                        <label style="color: red;font-weight: bold;"><?php echo $mensajem;?></label>
                    </div>
                </div>
                <?php endif;?>
                <h3><?php echo strtoupper($parametro['Parametro']['nombre'])?></h3>
                <?php echo $this->Form->create('Movimiento',array('action' => 'guarda_pago'));?>
                <div class="row">
                    <div class="col-md-12">
                        Saldo: <?php echo $usuario['User']['saldo'].' Bs'?>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        
                        <div class="table-responsive">
                            <table class="table table-striped table-vcenter">
                                <thead>
                                <th>Fecha</th>
                                <th>Bolivianos</th>
                                <th>Dolares</th>
                                </thead>
                                <tbody>
                                    <?php 
                                    $total_bolivianos = 0.00;
                                    $total_dolares = 0.00;
                                    ?>
                                    <?php $i = 0;?>
                                    <?php foreach ($array as $ar):?>
                                    <?php 
                                    $total_bolivianos += $ar['cuota_bolivianos'];
                                    $total_dolares += $ar['cuota_dolares'];
                                    ?>
                                    <?php echo $this->Form->hidden("Movimiento.$i.dato",array('value' => $ar['id']))?>
                                    <tr>
                                        <td><?php echo $ar['fecha']?></td>
                                        <td><?php echo $ar['cuota_bolivianos']?></td>
                                        <td><?php echo $ar['cuota_dolares']?></td>
                                    </tr>
                                    <?php $i++;?>
                                    <?php endforeach;?>
                                    <?php foreach ($extarray as $ar):?>
                                    <?php 
                                    $total_bolivianos += $ar['cuota_bolivianos'];
                                    $total_dolares += $ar['cuota_dolares'];
                                    ?>
                                    <?php //echo $this->Form->hidden("Movimiento.$i.dato",array('value' => $ar['id']))?>
                                    <tr style="color: green;">
                                        <td><?php echo $ar['fecha']?></td>
                                        <td><?php echo $ar['cuota_bolivianos']?></td>
                                        <td><?php echo $ar['cuota_dolares']?></td>
                                    </tr>
                                    <?php $i++;?>
                                    <?php endforeach;?>
                                    <tr class="success">
                                        <td><b style="color: black;">TOTAL</b></td>
                                        <td><?php echo $total_bolivianos;?></td>
                                        <td><?php echo $total_dolares;?></td>
                                    </tr>
                                    
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <?php //echo $this->Form->hidden('array',array('value' => $array))?>
                <div class="row">
                    <div class="col-md-6">
                        <a href="javascript:" onclick="cargamodal('<?php echo $this->Html->url(array('action' => 'ajax_pago_cuotas',$usuario['User']['id']));?>')" class="btn btn-alt btn-warning col-md-12">Regresar</a>
                    </div>
                    <div class="col-md-6">
                        <a href="javascript:" onclick="cargamodal('<?php echo $this->Html->url(array('action' => 'ajax_pago',$usuario['User']['id'],$total_bolivianos,$parametro['Parametro']['id']));?>')" class="btn btn-alt btn-primary col-md-12">Ir a Pago</a>
                    </div>
                </div>
            </div>